package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.KeeperModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.keeper.KeeperContract;

import dagger.Module;
import dagger.Provides;

@Module
public class KeeperModule {

    private KeeperContract.View view;

    public KeeperModule(KeeperContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public KeeperContract.View provideView() {
        return view;
    }

    @ActivityScope
    @Provides
    public KeeperContract.Model provideModel(KeeperModel model) {
        return model;
    }
}
